import 'dart:core';

class UserVo {
  int id;
  String username;
  int sex;
  String email;
  String phone;
  String avatar;
  String nickname;
  int personnelId;
  String personnelName;
  int status;
  String statusName;

  UserVo({
    this.id,
    this.username,
    this.sex,
    this.email,
    this.phone,
    this.avatar,
    this.nickname,
    this.personnelId,
    this.personnelName,
    this.status,
    this.statusName,
  });

  UserVo.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    username = json['username'];
    sex = json['sex'];
    email = json['email'];
    phone = json['phone'];
    avatar = json['avatar'];
    nickname = json['nickname'];
    personnelId = json['personnelId'];
    personnelName = json['personnelName'];
    status = json['status'];
    statusName = json['statusName'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['username'] = this.username;
    data['sex'] = this.sex;
    data['email'] = this.email;
    data['phone'] = this.phone;
    data['avatar'] = this.avatar;
    data['nickname'] = this.nickname;
    data['personnelId'] = this.personnelId;
    data['personnelName'] = this.personnelName;
    data['status'] = this.status;
    data['statusName'] = this.statusName;
    return data;
  }
}
